﻿<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="../css/DatangDialog-theme-default.css" rel="stylesheet" type="text/css"/>
<link href="../css/iconfont.css" rel="stylesheet" type="text/css" />
<link href="../css/skin.css" rel="stylesheet" type="text/css" />
<link href="../css/systemDataTableStyle.css" rel="stylesheet" type="text/css" />
<link rel="import" href="/includes/baseInclude.html">
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<style type="text/css">
.selected{
 background-color:#C6E2FF;
}
</style>
<title>数据字典</title>
</head>
<body class="pos-r" ng-app="myApp" ng-controller="myController">
<div class="pos-a" style="overflow:auto;overflow-x:hidden;width:150px;left:0;top:39px; bottom:0; height:{{height}}px; border-right:1px solid #e5e5e5; background-color:#f5f5f5">
    <aside class="Hui-aside">
    <div class="menu_dropdown bk_2" >
		<dl id="menu-article" class="text-c">
		    <a style="text-decoration:none;font-weight: normal;cursor: pointer;font-size:15px;line-height:40px" ng-click="showFirstlist(currentPage,pageSize)">数据字典</a>
		    <input juge-permission="dicSearch" style="width:100px;height:25px;" class="input-text text-c" type="text" ng-model="name" placeholder="搜索">
			<dd>
				<ul>
					<li   class="text-c" style="margin:10px;" ng-repeat="item in dataList |filter:name" ng-class='{selected:$index==selectedRow}' ng-click='selectedWhich($index)'>
						<a style="text-decoration:none;font-size:10px;" ng-bind="item.groupName" ng-click="showSecondList(item,currentPage,pageSize)"></a>
					</li>
				</ul>
			</dd>
		</dl>
	</div>
	</aside>
</div>
<nav class="breadcrumb">
<div style="margin-top:-7px;">
<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 数据字典 <span class="c-gray en">&gt;</span> 字典 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</div>
</nav>
<div style="margin-left:150px;">
	<div class="pd-20">
		<div ng-show="isFirstTrue">
		<div class="text-c" > 
			<input ng-model="firstSearchData" type="text" name="" id="" placeholder=" 字典名称" style="width:250px" class="input-text">
			<button  ng-click="load_page(currentPage,pageSize)" name="" id="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
		</div>
		<div class="cl pd-5 mt-20"> <span class="l"><a href="javascript:;"  juge-permission="dicDelete" ng-click="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>
		 <a class="btn btn-primary radius" juge-permission="dicAdd" ng-click="system_datagroup_edit(1)" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加字典</a></span>  </div>
		<div class="mt-20">
		<table   class="table table-border table-bordered table-hover table-bg" juge-permission="dicSearch">
					<thead>
						<tr class="text-c">
							<th class="option" style="border-right: hidden;border-bottom: hidden;"><input type="checkbox" ng-model="allSelected" ng-click="allDeleChoose(allSelected)" name=""  value=""></th>
							<th class="option" style="border: hidden;">操作</th>
							<th class="desc"   style="border: hidden;">名称</th>
							<th class="desc"   style="border: hidden;">描述</th>
						</tr>
					</thead>
					<tbody style="height:{{tableHeight}}px;">
						<tr class="text-c" ng-repeat=" item in pageInfo.list">
							<td class="option"><input type="checkbox" ng-model="selected" value="item.id" ng-click="deleChoose(item.id,selected)" name=""></td>
							<td class="option"><a style="text-decoration: none"  juge-permission="dicUpdate"
								ng-click="system_datagroup_edit(item)"
								href="javascript:;" title="编辑"><i class="Hui-iconfont">&#xe6df;</i></a>
								<a title="删除" ng-click="dele(item)" class="ml-5" juge-permission="dicDelete"
								style="text-decoration: none"><i class="Hui-iconfont">&#xe6e2;</i></a></td>
							<td class="desc" ng-bind="item.groupName"></td>
							<td class="desc" ng-bind="item.groupDepict"></td>
						</tr>
					</tbody>
			</table>
			 <!-- paging 分页-->
		<tm-pagination></tm-pagination>
			</div>
		</div>
		
	    <div ng-show="isSecondTrue">
		<div class="text-c"> 
			<input ng-model="secondSearchData" type="text" name="" id="" placeholder=" 字典名称" style="width:250px" class="input-text">
			<button ng-click="load_page(currentPage,pageSize)"  name="" id="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
		</div>
		<div class="cl pd-5 mt-20"> <span class="l"><a href="javascript:;"  juge-permission="dicDelete" ng-click="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>
		   <a class="btn btn-primary radius"  juge-permission="dicAdd" ng-click="system_datadetail_edit(2)" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加字典</a></span> </div>
		<div class="mt-20">
		<table  class="table table-border table-bordered table-bg table-hover table-sort" juge-permission="dicSearch">
					<thead>
						<tr class="text-c">
							<th class="check"  style="border-right: hidden;border-bottom: hidden;" ><input type="checkbox" ng-model="allSelected" ng-click="allDeleChoose(allSelected)" name="" value=""></th> 
							<th class="option" style="border: hidden;">操作</th>
							<th class="desc" style="border: hidden;">名称</th>
							<th class="roles"  style="border: hidden;">表名</th>
							<th class="enable"   style="border: hidden;">排序</th>
						</tr>
					</thead>
					<tbody style="height:{{tableHeight}}px;">
						<tr class="text-c" ng-repeat=" item in pageInfo.list | orderBy:'itemsort':!desc">
							<td class="check"><input type="checkbox" ng-model="selected" ng-checked="allSelected" value="item.id" ng-click="deleChoose(item.id,selected)"  name=""></td> 
							<td class="option"><a style="text-decoration: none"  juge-permission="dicUpdate"
								ng-click="system_datadetail_edit(item)"
								href="javascript:;" title="编辑"><i class="Hui-iconfont">&#xe6df;</i></a>
								<a title="删除" ng-click="dele(item)" class="ml-5"  juge-permission="dicDelete"
								style="text-decoration: none"><i class="Hui-iconfont">&#xe6e2;</i></a></td>
							<td class="desc" ng-bind="item.itemName"></td>
							<td class="roles" ng-bind="item.itemDepict"></td>
							<td class="enable"  juge-permission="dicUpdate">
								<a title="升序一位" ng-click="desc(item,1)" class="ml-5" ng-if="pageInfo.pageSize*(pageInfo.currentPage-1) + $index != 0"
								   style="text-decoration: none"><i class="Hui-iconfont">&#xe679;</i>
								</a>
								<a title="降序一位" ng-click="desc(item,2)" class="ml-5" ng-if="pageInfo.pageSize*(pageInfo.currentPage-1) + $index != pageInfo.total-1"
								   style="text-decoration: none"><i class="Hui-iconfont">&#xe674;</i>
								</a>
								<a title="置顶" ng-click="desc(item,3)" class="ml-5" ng-if="pageInfo.pageSize*(pageInfo.currentPage-1) + $index != 0"
								   style="text-decoration: none"><i class="Hui-iconfont">&#xe699;</i>
								</a>
								<a title="置低" ng-click="desc(item,4)" class="ml-5" ng-if="pageInfo.pageSize*(pageInfo.currentPage-1) + $index != pageInfo.total-1"
								   style="text-decoration: none"><i class="Hui-iconfont">&#xe698;</i>
								</a>
							</td>
						</tr>
					</tbody>
			</table>
			<!-- // paging 分页 -->
		<tm-pagination></tm-pagination>
			</div>
			
			
	</div>


</div>
<script type="text/javascript" src="/lib/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript" src="/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="../js/jquery.dataTables.min.js"></script> 
<script type="text/javascript" src="../js/systemData.js"></script>  
</body>
</html>